package com.gagakuai.transport.channel;


/*
 * @description: 从服务端的角度看:当数据入站时的钩子函数:
 *               添加状态更改的回调，用于拓展,在状态改变的时候触发
 * @author: houhong
 * @create: 2024-03-30 16:35
 */

public interface ChannelInboundHandler  extends ChannelHandler{


    void channelRegistered(ChannelHandlerContext ctx) throws Exception;

    void channelUnregistered(ChannelHandlerContext ctx) throws Exception;


    void channelActive(ChannelHandlerContext ctx) throws Exception;

    void channelInactive(ChannelHandlerContext ctx) throws Exception;


    void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception;


    void channelReadComplete(ChannelHandlerContext ctx) throws Exception;



    void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception;


    void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception;


    void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;





}
